/**************************************************
|	File:		CAnimation.cpp
|	Author:		Jake Elmi
|	Course:		SGP Mari's Flower
|	Purpose:	This class keeps track of all
|			    the frames for each animation
|				and whether to loop or not
**************************************************/
#include "Animation.h"
#include "Frames.h"
#include "../../SGD Wrappers/CSGD_TextureManager.h"


CAnimation::CAnimation(void)
{
	
	nImageID   = -1;
	nNumFrames = 0;
	bIsLooping = true;
	bIsPlaying = true;
}

CAnimation::~CAnimation(void)
{
	for (unsigned int i = 0; i < vListOfFrames.size(); ++i )
	{
		delete vListOfFrames[i];
		vListOfFrames[i] = nullptr;
	}
}

CAnimation* CAnimation::GetInstance(void )
{
	static CAnimation s_pInstance;
		return &s_pInstance;
}

